﻿//using System;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//using Server;
//using Server.Controller;

//namespace TestProject
//{
//    [TestClass]
//    public class CreateEvent
//    {
//        [TestMethod]
//        public void AddEventToDatabase()
//        {
//            EventController eventCtrl = new EventController();
            
//            Event newEvent = new Event();
//            DateTime date = new DateTime(2014, 1, 18);

//            newEvent.Title = "Test";
//            newEvent.Description = "Dis is gud test";
//            //newEvent.StartDate = date;
//            //newEvent.EndDate = date;
//            newEvent.Price = 500;
//            //newEvent.Address = "Godvej 15";
      
//            eventCtrl.AddEvent(newEvent);
            
//            Assert.AreEqual(newEvent.Title, eventCtrl.FindEventByTitle(newEvent.Title).Title);
//            eventCtrl.DeleteEvent(eventCtrl.FindEventByTitle(newEvent.Title));
//        }
//    }
//}
